﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Accounts
{
    public class LastSignOutInfo
    {
        /// <summary>
        /// 当前登录（需要注销）的sessionId
        /// </summary>
        public string LastSessionId { get; private set; }

        /// <summary>
        /// 最后退出时间
        /// </summary>
        public DateTime LastTime { get; private set; }

        /// <summary>
        /// 累计退出次数
        /// </summary>
        public int TotalTimes { get; private set; }

        public LastSignOutInfo(DateTime dt,int times,string sessionId)
        {
            LastTime = dt;
            TotalTimes = times;
            LastSessionId = sessionId;
        }
    }
    public class LastSignInInfo
    {
        /// <summary>
        /// 最后登录的sessionId
        /// </summary>
        public string LastSessionId { get; private set; }
        /// <summary>
        /// 最后登录ip
        /// </summary>
        public string LastIpAddress { get; private set; }
        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime LastTime { get; private set; }
        /// <summary>
        /// 累计登录次数
        /// </summary>
        public int TotalTimes { get; private set; }

        public LastSignInInfo(string ipadress,DateTime dt,int times,string sesionId)
        {
            LastIpAddress = ipadress;
            LastTime = dt;
            TotalTimes = times;
            LastSessionId = sesionId;
        }
    }

}
